package cn.buk.tms.entity.misc;

import cn.buk.tms.entity.base.BaseInfo;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;

@Entity
@Table(name = "azure_storage_filename_mapping")
public class AzureStorageFileNameMapping extends BaseInfo {

  /**
   * 操作人的用户名
   */
  @Column(length = 32)
  private String username;

  /**
   * 文件的文件名
   */
  @Column(name = "file_name", length = 500)
  private String fileName;

  /**
   * 存储在BLOB存储上的名称
   */
  @Column(name = "blob_name", length = 500)
  private String blobName;

  /**
   * 文件类型
   */
  @Column(name = "content_type", length = 100)
  private String contentType;

  /**
   * 文件尺寸
   */
  @Column(name = "file_size")
  private long fileSize;

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getFileName() {
    return fileName;
  }

  public void setFileName(String fileName) {
    this.fileName = fileName;
  }

  public String getBlobName() {
    return blobName;
  }

  public void setBlobName(String blobName) {
    this.blobName = blobName;
  }

  public String getContentType() {
    return contentType;
  }

  public void setContentType(String contentType) {
    this.contentType = contentType;
  }

  public long getFileSize() {
    return fileSize;
  }

  public void setFileSize(long fileSize) {
    this.fileSize = fileSize;
  }
}
